package com.tpu.bdclasses;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
 * @hibernate.class table="event"
 */
public class Event {
private int event_id;
private String description;
private String tite;
private Date data;
private String showplace;
private KindOfEvent koe;
private Set tickets=new HashSet();

public Event(int id, int idoftype, String description, String tite, Date data,
		String showplace, KindOfEvent koe) {
	super();
	this.event_id = id;
	this.description = description;
	this.tite = tite;
	this.data = data;
	this.showplace = showplace;
	this.koe = koe;
}
public Event(){}
/**
* @hibernate.many-to-one
* column="id"
*/
public KindOfEvent getKoe() {
	return koe;
}
public void setKoe(KindOfEvent koe) {
	this.koe = koe;
}


/**
 * @hibernate.id generator-class="native" column="id"
 */
public int getEvent_id() {
	return event_id;
}
public void setEvent_id(int event_id) {
	this.event_id = event_id;
}
/**
 * @hibernate.property column="title"
 */
public String getTite() {
	return tite;
}
public void setTite(String tite) {
	this.tite = tite;
}
/**
 * @hibernate.property column="data"
 */
public Date getData() {
	return data;
}
public void setData(Date data) {
	this.data = data;
}
/**
 * @hibernate.property column="showplace"
 */
public String getShowplace() {
	return showplace;
}
public void setShowplace(String showplace) {
	this.showplace = showplace;
}
/**
 * @hibernate.property column="description"
 */
public String getDescription() {
	return description;
}
public void setDescription(String description) {
	this.description = description;
}
/**
* @hibernate.set
* inverse="true"
* order-by="id"
* @hibernate.collection-key
* column="id"
* @hibernate.collection-one-to-many
*/
public Set getTickets() {
	return tickets;
}
public void setTickets(Set tickets) {
	this.tickets = tickets;
}
public void addTickets(Ticket ticket) {
	this.tickets.add(ticket);
}




}
